<?php
/**
 * polwebgis
 * 
 * This file is part of polwebgis.
 *
 * @copyright   Copyright (c) 2012 Dominik Janisch (http://www.joanneum.at)
 * @lastmodified    $LastChangedDate: 2012-03-07 09:15:12 +0000 (Wed, 07 Mar 2012) $
 * @revision    $Revision: 160 $ 
 */

class MapList
{
    private $arr_values_;

    public function __construct(){}
        
    public function __destruct(){}
    
    /**
    * @param: (string) name
    *
    * @param: (mixed) value
    */
    public function set($name, $value)
    {
        if(isset($this->arr_values_[$name]) && $value === null)
            unset($this->arr_values_[$name]);
        else
            $this->arr_values_[$name] = $value;
    }
    
    /**
    * @return: (mixed)
    *
    * @param: (string) name
    */
    public function get($name)
    {
        if(isset($this->arr_values_[$name]))
            return $this->arr_values_[$name];
        return false;
    }
    
    public function setArray($arr_tmp)
    {
        $this->arr_values_ = $arr_tmp;
    }
    
    public function getArray()
    {
        return $this->arr_values_;
    }
}

?>
